package com.company.project.mapper;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.company.project.dto.TThrbEntityDto;
import com.company.project.entity.SysUser;
import com.company.project.entity.TCallbakTaskEntity;
import com.company.project.entity.TThrbEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.company.project.vo.req.HomeTJReqVO;
import com.company.project.vo.resp.ThrbTjRespVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 
 * 
 * @author wenbin
 * @email *****@mail.com
 * @date 2023-11-06 22:00:19
 */
public interface TThrbMapper extends BaseMapper<TThrbEntity> {

    IPage<TThrbEntityDto> getListDL(@Param("page") Page page, @Param("thrb") TThrbEntity tThrb, @Param("user") SysUser sysUser,@Param("roleName")String roleName);
    IPage<TThrbEntity> getListZJL(@Param("page") Page page,@Param("thrb") TThrbEntity tThrb);

    IPage<TThrbEntity> getListKHJL(@Param("page") Page page,@Param("thrb") TThrbEntity tThrb);

    List<String> selectCompany(@Param("roleName")String roleName,@Param("username") String username);

    List<String> selectXs(@Param("deptNo") String deptNo,@Param("roleName")String roleName,@Param("user") SysUser user);

    List<String> selectOrg(@Param("deptNo") String deptNo,@Param("roleName") String roleName,@Param("user") SysUser user);

    List<SysUser> selectDls();

    void insertThjl(@Param("time") String currentTime,@Param("type") String type,@Param("username") String username,@Param("createuser") String createuser);

    List<ThrbTjRespVO>  selectTJ(@Param("username")String username,@Param("time") String time);

    List<TThrbEntity> selectJfscTj(@Param("createuser") String username,@Param("vo")  HomeTJReqVO vo);

    void insertList(@Param("list") List<TThrbEntity> thrbList);

}
